local tenyear_effect = fk.CreateSkill{
  name = "tenyear_effect",
}
tenyear_effect:addEffect(fk.HpChanged, {
    global = true,
    priority = -1,
    can_refresh = function (self, event, target, player, data)
        return target == player and data.reason == "damage" and data.num <= -4
        and data.damageEvent and data.damageEvent.from and data.damageEvent.from ~= player
        and not Fk.skills["mobile_effect"]
    end,
    on_refresh = function (self, event, target, player, data)
        local room = player.room
        room:doSuperLightBox("packages/water_wegame/qml/shenweizhengqiankun.qml")
        room:broadcastPlaySound("packages/water_wegame/image/anim/shenweizhengqiankun/audio")
        room:delay(3000)
    end,
})

return tenyear_effect